.settings-container {
  width: 100%;
  min-height: 100vh;
  background-color: #0a0a0a;
  color: white;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
}

.settings-header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.back-button {
  background: none;
  border: none;
  color: #4a90e2;
  font-size: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  position: absolute;
  left: 2rem;

  &:hover {
    background-color: rgba(74, 144, 226, 0.2);
  }
}

.back-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.settings-title {
  font-size: 1.8rem;
  margin: 0;
  text-align: center;
  width: 100%;
  color: #4a90e2;
  text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.settings-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
  padding: 0.5rem 1.5rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;

  &:hover {
    color: white;
    background-color: rgba(74, 144, 226, 0.3);
  }

  &.active {
    color: white;
    background-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
  }
}

.settings-content {
  flex: 1;
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  min-height: calc(100vh - 250px);
}

.tab-content {
  padding: 1rem;
  height: 100%;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 2.5rem;
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #4a90e2;
  border-bottom: 1px solid rgba(74, 144, 226, 0.3);
  padding-bottom: 0.5rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  border-radius: 6px;
  transition: background-color 0.3s;
  outline: none;

  &:focus-within {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.5);
    position: relative;
    z-index: 1;
  }

  &:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

.setting-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.setting-name {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.setting-description {
  font-size: 0.9rem;
  color: #aaa;
}

.setting-control {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;

  input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 34px;

    &:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
  }

  input:checked + .toggle-slider {
    background-color: #4a90e2;
  }

  input:checked + .toggle-slider:before {
    transform: translateX(26px);
  }
}

.text-input, .number-input {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  width: 250px;
  transition: all 0.3s;

  &:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
  }

  &:disabled {
    background-color: rgba(0, 0, 0, 0.5);
    color: #666;
    cursor: not-allowed;

    &:focus {
      outline: none;
      border-color: #4a90e2;
      box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    }
  }
}

.number-input {
  width: 80px;
  text-align: center;
}

.update-button, .danger-button, .info-button, .duration-button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.duration-button {
  background-color: rgba(74, 144, 226, 0.2);
  color: #4a90e2;
  border: 1px solid rgba(74, 144, 226, 0.3);
  min-width: 80px;

  &:hover {
    background-color: rgba(74, 144, 226, 0.3);
  }

  &:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    color: #666;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);

    &:focus {
      outline: none;
      border-color: #4a90e2;
      box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    }
  }
}

.update-button {
  background-color: #4a90e2;
  color: white;

  &:hover {
    background-color: #3a80d2;
  }

  &.loading {
    background-color: #3a80d2;
    cursor: not-allowed;
    position: relative;
  }
}

.danger-button {
  background-color: #e25c5c;
  color: white;

  &:hover {
    background-color: #d24c4c;
  }
}

.info-button {
  background-color: #5c9ce2;
  color: white;

  &:hover {
    background-color: #4c8cd2;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #1e1e1e;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #4a90e2;
}

.close-button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;

  &:hover {
    color: white;
  }
}

.modal-body {
  padding: 1.5rem;
}

.success-message {
  color: #4caf50;
}

.error-message {
  color: #f44336;
}

.modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-button {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-right: 0.5rem;

  &:hover {
    background-color: #3a80d2;
  }
}

.secondary-button {
  background-color: transparent;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;

  &:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

.duration-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.duration-input {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  width: 100px;
  text-align: center;
  transition: all 0.3s;

  &:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
  }
}

.duration-unit {
  font-size: 1.1rem;
  color: #aaa;
}

.stats-container {
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  &:last-child {
    border-bottom: none;
  }
}

.stat-name {
  font-weight: 500;
}

.stat-value {
  color: #4a90e2;
  font-weight: 500;
}

.status-indicator {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 500;

  &.active {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
  }

  &.inactive {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
  }
}

.ip-address {
  font-family: monospace;
  font-size: 1.1rem;
  color: #4a90e2;
}

@media (max-width: 768px) {
  .settings-header {
    padding: 1rem;
  }
  
  .back-button {
    left: 1rem;
  }
  
  .settings-title {
    font-size: 1.5rem;
  }
  
  .settings-content {
    padding: 1rem;
  }
  
  .text-input {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setting-control {
    margin-left: 0;
    margin-top: 0.8rem;
    width: 100%;
  }
  
  .text-input {
    width: 100%;
    max-width: none;
  }
}